<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="../dist/css/bootstrap.min.css">
  <title>浮动与清除浮动</title>
</head>
<body>
  <div class="bg-info clearfix">
    <div class="p-2 text-white bg-secondary float-start">向左浮动</div>
    <div class="p-2 text-white bg-secondary float-end">向右浮动</div>
  </div>
  <div class="bg-info mt-3">
    <div class="p-2 text-white bg-secondary float-start">向左浮动</div>
    <div class="p-2 text-white bg-secondary float-end">向右浮动</div>
  </div>
</body>
</html>